import { ElAlert } from 'element-plus';
import './index.scss';
export const MciAlert = defineComponent({
  name: 'MciAlert',
  props: {
    // 标题
    title: {
      type: String,
      default: ''
    },
    closable: {
      type: Boolean,
      default: false
    },
    plain: {
      type: Boolean,
      default: false
    }
  },
  render() {
    const { title, closable } = this;
    return (
      <ElAlert
        class={`mci-alert ${this.plain ? 'is-plain' : ''}`}
        title={title}
        closable={closable}
        vSlots={this.$slots}
      />
    );
  }
});
